package org.csu.jpetstore_manage_system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName("lineItem")
public class LineItem {
    @TableId("orderid")
    private int orderId;
    @TableField("linenum")
    private int lineNumber;
    private int quantity;
    @TableField("itemid")
    private String itemId;
    @TableField("unitprice")
    private BigDecimal unitPrice;

    @TableField(exist = false)
    private Item item;
    @TableField(exist = false)
    private BigDecimal total;
}
